package cn.lls.dao;

import cn.lls.entity.company.WageEntity;
import cn.lls.excel.WageExcel;
import cn.lls.req.emp.ConditionSearchWageExcelReq;
import cn.lls.req.emp.ConditionSearchWageReq;
import cn.lls.vo.emp.WageInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 划水艺术家
 * @since 2022-11-15
 */
@Mapper
public interface WageDao extends BaseMapper<WageEntity> {

    IPage<WageInfo> getWageInfoByPageAndCondition(IPage page,
                                                  @Param("req") ConditionSearchWageReq conditionSearchWageReq);


    List<WageExcel> getWageInfoExcel(@Param("req") ConditionSearchWageExcelReq conditionSearchWageReq);

    WageInfo getWageById(Long wageId);


    IPage<WageInfo> getWageByEmpId(IPage page, Long userId);

}
